<?php
namespace app\admin\model\system;
use think\facade\Db;
use app\admin\common;

class Setting{
	
	public function updateSetting($_up,$_where){
		return Db::name("setting")->where($_where)->update($_up);
	}
	public function findData($_where,$_field){
		return Db::name("setting")->where($_where)->field($_field)->find();
	}
	public function findUserActiveSetting($_where,$_field){
		return Db::name("user_activity")->where($_where)->field($_field)->find();
	}
}
?>